﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="add_reservation.aspx.cs" Inherits="add_reservation" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <div align="center">
    <br /><br /><br />
    <img src="Image/add-reservation.png" alt=""/><br /><br />
    <table>

        <tr>
            <td style="color: #FFCC66">GUEST ID : </td>
            <td>
                <asp:DropDownList ID="DropDownList1" runat="server" BackColor="#FFCC66" 
                    Width="190px" DataSourceID="orclDataSource1" DataTextField="GUEST_ID" 
                    DataValueField="GUEST_ID">
                </asp:DropDownList>
                <asp:SqlDataSource ID="orclDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:ConnectionString19 %>" 
                    ProviderName="<%$ ConnectionStrings:ConnectionString19.ProviderName %>" 
                    SelectCommand="SELECT GUEST_ID FROM GUESTS"></asp:SqlDataSource>
            </td>
        </tr>

        <tr>
            <td style="color: #FFCC66">ROOM No. : </td>
            <td>
                <asp:DropDownList ID="DropDownList2" runat="server" BackColor="#FFCC66" 
                    Width="190px" DataSourceID="orclDataSource2" DataTextField="ROOM_NO" 
                    DataValueField="ROOM_NO">
                </asp:DropDownList>
                <asp:SqlDataSource ID="orclDataSource2" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:ConnectionString20 %>" 
                    ProviderName="<%$ ConnectionStrings:ConnectionString20.ProviderName %>" 
                    SelectCommand="SELECT ROOM_NO FROM ROOMS WHERE STATUS='N'"></asp:SqlDataSource>
            </td>
        </tr>

        <tr>
            <td style="color: #FFCC66">STAFF ID : </td>
            <td>
                <asp:DropDownList ID="DropDownList3" runat="server" BackColor="#FFCC66" 
                    Width="190px" DataSourceID="orclDataSource3" DataTextField="STAFF_ID" 
                    DataValueField="STAFF_ID">
                </asp:DropDownList>
                <asp:SqlDataSource ID="orclDataSource3" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:ConnectionString21 %>" 
                    ProviderName="<%$ ConnectionStrings:ConnectionString21.ProviderName %>" 
                    SelectCommand="SELECT STAFF_ID FROM STAFFS"></asp:SqlDataSource>
            </td>
        </tr>

        <tr>
            <td style="color: #FFCC66">CHECK IN DATE : </td>
            <td>
                <asp:Label ID="Label2" runat="server" ForeColor="#FFCC66" 
                    Text="Please Select Check in Date"></asp:Label>
                <asp:Calendar ID="Calendar1" runat="server" ShowGridLines="True" 
                    BackColor="#FFFFCC" BorderColor="#FFCC66" BorderWidth="1px" 
                    DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt" 
                    ForeColor="#663399" Height="200px" Width="220px" 
                    onselectionchanged="Calendar1_SelectionChanged">
                    <DayHeaderStyle BackColor="#FFCC66" Font-Bold="True" Height="1px" />
                    <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
                    <OtherMonthDayStyle ForeColor="#CC9966" />
                    <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
                    <SelectorStyle BackColor="#FFCC66" />
                    <TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt" 
                        ForeColor="#FFFFCC" />
                    <TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
                </asp:Calendar>
            </td>
        </tr>

        <tr>
            <td style="color: #FFCC66">CHECK OUT DATE : </td>
            <td>
                <asp:Label ID="Label3" runat="server" ForeColor="#FFCC66" 
                    Text="Please Select Check out Date"></asp:Label>
                <asp:Calendar ID="Calendar2" runat="server" BackColor="#FFFFCC" 
                    BorderColor="#FFCC66" BorderWidth="1px" DayNameFormat="Shortest" 
                    Font-Names="Verdana" Font-Size="8pt" ForeColor="#663399" Height="200px" 
                    ShowGridLines="True" Width="220px" 
                    onselectionchanged="Calendar2_SelectionChanged">
                    <DayHeaderStyle BackColor="#FFCC66" Font-Bold="True" Height="1px" />
                    <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
                    <OtherMonthDayStyle ForeColor="#CC9966" />
                    <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
                    <SelectorStyle BackColor="#FFCC66" />
                    <TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt" 
                        ForeColor="#FFFFCC" />
                    <TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
                </asp:Calendar>
            </td>
        </tr>

        <tr>
            <td style="color: #FFCC66">STATUS : </td>
            <td><asp:DropDownList ID="DropDownList4" runat="server" BackColor="#FFCC66" 
                    Width="190px">
                <asp:ListItem Value="Y">YES</asp:ListItem>
                <asp:ListItem Value="N">NO</asp:ListItem>
            </asp:DropDownList></td>
            
        </tr>

        <tr>
            <td></td>
            <td><asp:Button ID="Button1" runat="server" Text="ADD NEW RESERVATION" 
                    BackColor="#FFCC66" BorderColor="#FF9966" Height="40px" 
                    onclick="Button_Reservation_Click" Width="190px" /></td>
        </tr>
        
        <tr><td></td><td>
            <asp:Button ID="Button5" runat="server" BackColor="#FFCC66" 
                BorderColor="#FF9966" Height="25px" onclick="Back_Click" Text="&lt;&lt; Back" 
                Width="85px" />
            </td></tr> 
    </table>
    <asp:Label ID="Label1" runat="server" ForeColor="#FFCC66"></asp:Label>
</div><br /><br />

</asp:Content>

